﻿<Page x:Class="PVReportDeployer.ChooseSource"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="500" d:DesignWidth="600"
	Title="ChooseSource">

    <Grid>
        <Label Content="Source Location" HorizontalAlignment="Left" Margin="37,26,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <TextBox x:Name="sourceLoc" HorizontalAlignment="Left" Height="44" Margin="37,52,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="418" IsReadOnly="True"/>
        <Button x:Name="chooseSrcBtn" Content="Local" HorizontalAlignment="Left" Margin="470,52,0,0" VerticalAlignment="Top" Width="92" Click="LoadFromLocalBtn_Click"/>
        <Button x:Name="loadFromSharePointBtn" Content="SharePoint" HorizontalAlignment="Left" Margin="470,76,0,0" VerticalAlignment="Top" Width="92" Click="LoadFromSharePointBtn_Click"/>
        <ListBox x:Name="listBox" HorizontalAlignment="Left" Height="102" Margin="37,144,0,0" VerticalAlignment="Top" Width="525" SelectionChanged="ListBox_SelectionChanged">
        </ListBox>
        <Label Content="From DataSource" HorizontalAlignment="Left" Margin="37,263,0,0" VerticalAlignment="Top" Width="109" FontWeight="Bold"/>
        <TextBox x:Name="fromDS" HorizontalAlignment="Left" Height="21" Margin="37,294,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="525" IsReadOnly="True"/>
        <Label Content="To DataSource" HorizontalAlignment="Left" Margin="37,320,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <TextBox x:Name="toDS" HorizontalAlignment="Left" Height="23" Margin="37,351,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="525" TextChanged="ToDS_TextChanged"/>
        <Button x:Name="deployToLocalBtn" Content="Deploy to Local" HorizontalAlignment="Left" Margin="422,418,0,0" VerticalAlignment="Top" Width="140" Click="DeployToLocalBtn_Click"/>
        <Label x:Name="indicator" Content="Deploy Done !" HorizontalAlignment="Left" Margin="37,453,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.616,0.392" Width="174" FontWeight="Bold" Foreground="#FF33D127" Visibility="Collapsed"/>
        <Button x:Name="deployToSPBtn" Content="Deploy to SharePoint" HorizontalAlignment="Left" Margin="422,453,0,0" VerticalAlignment="Top" Width="140" Click="DeployToSPBtn_Click"/>
        <Label Content="Available PowerView Reports" HorizontalAlignment="Left" Margin="37,113,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <Label Content="Deploy File Name" HorizontalAlignment="Left" Margin="37,379,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <TextBox x:Name="deployFileName" HorizontalAlignment="Left" Height="23" Margin="37,410,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="260" TextChanged="DeployFileName_TextChanged"/>

    </Grid>
</Page>
